package com.sian.security.web.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import com.sian.security.web.model.Authority;
import com.sian.security.web.model.Credential;

public abstract class AbstractSecurityService implements SecurityService
{
	@Autowired
	protected UserPreferences userPreferences;

	public List<Authority> getAuthorities() 
	{
		return userPreferences.getAuthorities();
	}
	public void setAuthorities(List<Authority> authorities)
	{
		userPreferences.setAuthorities(authorities);
	}
	public void setCredential(Credential credential)
	{
		userPreferences.setCredential(credential);
	}
	public Credential getCredential()
	{
		return this.userPreferences.getCredential();
	}
}
